using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace VoltGameEditor
{
    public partial class Splush : Form
    {
		System.Timers.Timer timer = new System.Timers.Timer();

        public Splush()
        {
            InitializeComponent();
			//timer.AutoReset = true;
			timer.Interval = 10;
			timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);
        }

		private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
		{
			if (this.Opacity == 0)
				this.Close();
			this.Opacity -= 0.015;
		}
		public void DoTimer()
		{
			timer.SynchronizingObject = this;
			timer.Start();
		}
    }
}